package com.zz.spring6.iocxml.auto.service.impl;


import com.zz.spring6.iocxml.auto.dao.UserDao;
import com.zz.spring6.iocxml.auto.dao.impl.UserDaoImpl;
import com.zz.spring6.iocxml.auto.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUserSerbice() {
        System.out.println("UserSerbice 中的方法执行了");
//        UserDao userDao = new UserDaoImpl();
//        userDao.addUserDao();
        userDao.addUserDao();
    }
}
